<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加新书籍</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

</head>
<body>
<h2>添加新书籍</h2>
<form action="" method="post" novalidate="novalidate">

<!--要自定义提示必须novalidate="novalidate" 否则浏览器自带有普通提示-->

    {% csrf_token %}

    {% for field in form %}
        <p>
        {{ field.label }}{{ field }}
        <!--错误信息固定：field.errors.0 -->
        <!--label：自定义标签提示 -->
        </p>
    {% endfor %}
    
    <input type="submit" value="提交">
</form>
</body>
</html>